﻿using System;
using System.Globalization;

namespace IronBefunge.Core.InstructionHandlers
{
	internal sealed class RandomizerInstructionHandler : IInstructionHandler
	{
		public void Handle(ExecutionContext context)
		{
			context.Direction = (Direction)context.Randomizer.Next(4);
		}
	}
}
